package com.xiaomi.eco.scheduler;

import com.xiaomi.cloud.plan.client.plan.PlanExecutor;
import com.xiaomi.cloud.plan.client.spring.annotation.PlanTask;
import com.xiaomi.eco.service.EcoTaskAboutExpireService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

@Slf4j
@PlanTask(name = "EcoTaskAboutExpire", quartzCron = "0 0 11 ? * *", description = "每天检查任务表里是否有逾期任务，发送到相关人")
public class EcoTaskAboutExpireTask implements PlanExecutor {

    @Autowired
    private EcoTaskAboutExpireService ecoTaskAboutExpireService;

    @Override
    public void execute() {
        ecoTaskAboutExpireService.taskAboutExpire();
    }
}
